package com.riant.test7.threadpool;

import sun.misc.BASE64Encoder;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

public class Base64Test {
    public static void main(String[] args) {
        String str="中国";
        BASE64Encoder encoder = new BASE64Encoder();
        System.out.println(encoder.encode(str.getBytes(StandardCharsets.UTF_8)));
    }
}
